<include file="Public:header" />
<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 
<div class="content">
<!-----------------------------------------内容开始--------------------------------------------------->
<div class="infoBox">
<form name="form" action="{:U('dolang')}" method="post" onsubmit="return checkform();">
<input type="hidden" name="id" value="{$id}" />


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">
<tr>
<td width="11%" class="infoBoxTd">语言名称：</td>
<td colspan="2"><input type="text" name="name" value="{$name}" />
</td>
</tr>

<tr>
<td width="11%" class="infoBoxTd">代号：</td>
<td colspan="2"><input type="text" name="nid" value="{$nid}"  />
</td>
</tr>

<tr>
<td width="11%" class="infoBoxTd">状态：</td>
<td colspan="2"><input type="radio" name="state" value="1" <eq name="state" value="1">checked</eq> /> 应用 <input type="radio" name="state" value="0" <eq name="state" value="0">checked</eq> /> 隐藏  
</td>
</tr>

<tr>
<td width="11%" class="infoBoxTd">排序：</td>
<td colspan="2"><input type="text" name="xu" value="{$xu}" />
</td>
</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxTd">&nbsp;</td>
<td align="left"><input type="submit" name="Button1" value="保存" class="formInput01" /></td>
</tr>
</table>
</form>
</div>
<!-----------------------------------------内容结束--------------------------------------------------->
</div>
<script language="javascript">

//表单验证
function checkform(){
	var b = $('input[name="name"]').val();
	if(b == ''){
		ui.error('请输入语言名称');
		return false;
	}
	var n = $('input[name="nid"]').val();
	if(n == ''){
		ui.error('请输入代号');
		return false;
	}
	if(/^[A-Za-z0-9_-]+$/.test(n)==0) {
		ui.error('代号只能输入英文字母和数字');
		return false;
	}

}

</script>
    

<include file="Public:footer" />
